//
//  Largeimage.m
//  NewApp
//
//  Created by  on 12-6-15.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "NAImage.h"
#import "Constants.h"

@implementation NAImage

@synthesize ID,URL,title,largeImageURL;

- (id) initWithDictionary:(NSDictionary *) dictionary {
    if (self = [super init]) {
        self.ID = [dictionary objectForKey:@"id"];
        self.URL = [NSURL URLWithString:[dictionary objectForKey:@"img"]];
        self.title = [dictionary objectForKey:@"title"];
        self.largeImageURL = [NSURL URLWithString:[dictionary objectForKey:kBigImageURL]];
    }
    
    return self;
}

- (void) dealloc {
    [ID release];
    [URL release];
    [title release];
    
    [super dealloc];
}

@end
